
import Page from '@/components/Layout'
import LeagueMatch from '@/components/LeagueMatch'
import { getLiveInfo } from '@/common/liveData'
const Index = (props) => <LeagueMatch {...props}></LeagueMatch>
Index.getLayout = (page, props) => {
  return (
    <Page header footer {...props}>
      {page}
    </Page >
  )
}
export async function getServerSideProps (context) {
  const matchType = process.env.NEXT_PUBLIC_Basketball
  //[获取精彩视频,获取积分榜联赛列表,首页视频锦集,首页录像回放锦集,热门联赛列表,新闻模块数据]
  const props = await getLiveInfo(matchType)
  return {
    props
  }
}


export default Index